Skip to content

Conversation

erikhfj
Copy link
Member

@erikhfj erikhfj commented Sep 9, 2026

Summary

Completes #12 — the final wiring (per review agreement, the issue stays open until this lands):

Tests (3 new, 26 total green)

  • Next/previous changes the displayed book and the position text
  • Jump list selects directly (selectOptions on the labeled select)
  • Fetch counter stays at 1 across prev → next → jump — zero unnecessary API calls while navigating
  • App snapshot updated deliberately (vitest -u) — viewer now includes both controls

Checklist

  • npm run lint — 0 warnings
  • npm test — 26 passed
  • npm run build — passes
  • npm run format:check — passes

AI-assisted: implementation generated with AI assistance, reviewed and verified.

- App: index state with bounds-safe clamping, NavigationControls
  (prev/next) and BookJumpList (direct selection via onSelect) rendered
  inside the book viewer region
- tests: navigation changes the displayed book and position text, jump
  selection works, and the fetch counter stays at 1 across prev/next and
  jump interactions (no unnecessary API calls)
- App snapshot updated deliberately (viewer now includes both controls)

Completes #12: BookCard, NavigationControls and BookJumpList are now
wired together — the issue's remaining scope.
@erikhfj erikhfj requested a review from a team as a code owner September 9, 2026 16:07
@erikhfj erikhfj added this to the M2 — Core app milestone Sep 9, 2026
@erikhfj erikhfj added type: feature New functionality or requirement area: ui React components, presentation, navigation priority: high Required for first delivery ai-assisted Substantial AI-generated code (documented per spec) labels Sep 9, 2026
@erikhfj erikhfj requested a review from rachelks September 9, 2026 16:07
@erikhfj erikhfj added the status: in-review PR is open and awaiting review label Sep 9, 2026
@erikhfj erikhfj requested a review from robertky September 9, 2026 16:07
rachelks
rachelks previously approved these changes Sep 9, 2026
Copy link
Member

@rachelks rachelks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally and reviewed the App integration. Navigation and jump list work as expected, including the boundary-safe index handling. Tests pass locally, good job!

Copy link
Member

@robertky robertky left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Navigation and direct book selection work as expected, and the tests confirm that browsing does not trigger unnecessary new requests.

@robertky robertky merged commit 73ef867 into main Sep 10, 2026
1 check passed
Sign in to join this conversation on GitHub.
Labels
ai-assisted Substantial AI-generated code (documented per spec) area: ui React components, presentation, navigation priority: high Required for first delivery status: in-review PR is open and awaiting review type: feature New functionality or requirement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants